package com.xinqi.modules.databank.v2.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinqi.common.mybatis.data.entity.BaseEntity;
import com.xinqi.modules.databank.dto.req.question.ResourceAnswerDTO;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 互动课件互动视频学生答题记录表(用于批阅)实体层
 *
 * @author: system
 * @date: 2023/03/15
 */
@Setter
@Getter
@TableName("co_course_resource_interaction_log")
public class CourseResourceInteractionLogEntity extends BaseEntity {
    /** 所属课程id */
    @TableField(value = "course_id")
    private Long courseId;
    /** 班级id */
    @TableField(value = "class_id")
    private Long classId;
    /** 课程内容栏目id */
    @TableField(value = "content_id")
    private Long contentId;
    /** 互动id */
    @TableField(value = "resource_part_id")
    private Long resourcePartId;
    /** 学生用户id */
    @TableField(value = "student_id")
    private Long studentId;
    /** 0未学习1学习中2已完成 */
    @TableField(value = "status")
    private Integer status;
    /** 学习时长 */
    @TableField(value = "study_time")
    private Long studyTime;
    /** 得分 */
    @TableField(value = "score")
    private BigDecimal score;
    /** 课程内容标识 */
    @TableField(value = "type")
    private Integer type;
    /** 已读状态 */
    @TableField(value = "is_read")
    private Integer isRead;
    /** 学生提交时间 */
    @TableField(value = "submit_time")
    private LocalDateTime submitTime;
    /** 查阅次数 */
    @TableField(value = "consult_num")
    private Long consultNum;
    /**学生答题集合*/
    @TableField(value = "answer")
    private List<ResourceAnswerDTO> answer;

}
